// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'

// 引入手淘
import 'lib-flexible'
// 引入mint-ui
import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'

// 引进顶部和底部通栏（公共组件）
import Buttom from '@/components/tab/bottom_menu'
import Head from '@/components/head/head'

// 全局注册组件
Vue.component('v-Buttom', Buttom)
Vue.component('v-Head', Head)
// 把mint-ui注册到项目中去
Vue.use(Mint)

// 修改原型链上方法
Vue.prototype.$http = axios

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
